<template>
	<view class="content">
		<web-view :src="src"></web-view>
		
		
		<view style="opacity: 0;visibility: hidden;width: 1px;height: 1px;overflow: hidden;">
			
			<navBar :logo='false' :leftText="title" :search='false'></navBar>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				src: '',
				title:''
			}
		},
		onLoad(e) {
			this.src = decodeURIComponent(e.src)
			this.title=e.title
			this.clearMuiBack()
		},
		onShow() {
		},
		methods: {
			// 关闭mui返回
			            clearMuiBack() {
			                // #ifdef APP-PLUS
			                let currentWebview = this.$scope.$getAppWebview().children()[0]
			                //监听注入的js
			                currentWebview.addEventListener("loaded", function() {
			                    currentWebview.evalJS("mui.init({keyEventBind: {backbutton: false }});");
			                });
			                // #endif
			            },
		}
	}
</script>

<style lang="less">
	page{
		
	}
</style>
